package domain;

import java.util.ArrayList;

public class Pokedex {
	
	private ArrayList<Pokemon> pokemons = new ArrayList<Pokemon>();
	
	private ArrayList<Pokemon> getPokemons(){
		return pokemons;
	}
	
	public boolean voegPokemonToe(Pokemon p){
		if (!getPokemons().contains(p)){
			pokemons.add(p);
			return true;
		}
		return false;
	}
	
	public boolean verwijderPokemonToe(Pokemon p){
		if (getPokemons().contains(p)){
			pokemons.remove(p);
			return true;
		}
		return false;
	}
	
	public String toString(){
		String uitvoer = "";
		
		for (Pokemon p : getPokemons()){
			uitvoer = p.toString() + "\n";
		}
		
		return uitvoer;
	}
	
	

}
